package yawning.mew.cat;

import yawning.mew.sim.SimulationEvent;


public class EventStampede extends SimulationEvent {
	CatModelSimState mState;

	EventStampede(CatModelSimState state) {
		super(state.mSimEngine);
		mState = state;
	}

	public void run() {
		if (mState.mModel.druid.getTalent(CatModel.STAMPEDE) > 0) {
			if (mState.mIsLogging) mState.mLog.log("Stampede\n");

			schedule(mState.mModel.stampedeBuffDuration);
		}
	}

	public void onRavage() {
		cancel();
	}

	@Override
	public void onExpire() {
		if (mState.mIsLogging) mState.mLog.log("Stampede: Expiration\n");
	}
}